// import './assets/main.css'

import { createApp } from 'vue'
import { createPinia } from 'pinia'
import './app.scss'

import App from './App.vue'
import router from './router'
import persist from 'pinia-plugin-persistedstate'

// 引入echarts
import Echarts from 'vue-echarts'
import * as echarts from 'echarts'
import '@/assets/iconfont/iconfont.js'
import SvgIcon from '@/components/SvgIcon.vue'

const app = createApp(App)

app.use(createPinia().use(persist))
app.use(router)
app.component('e-charts', Echarts)
app.component('SvgIcon', SvgIcon)

// 全局挂载echarts
app.config.globalProperties.$echarts = echarts

app.mount('#app')
